////////////////////////////////////////////////////////////////////////////
//
// Copyright 2018 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////

@import "~realm-studio-styles/variables";

.CloudAuthentication {
  $animation-duration: .33s;

  align-items: center;
  background: $window-background;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 2 * $spacer;
  transition: padding $animation-duration;

  &__Brand {
    flex-shrink: 0;
    text-align: center;
    transition: transform $animation-duration;
  }

  &__Icon {
    height: 2.5rem;
    width: 2.5rem;
  }

  &__Title {
    margin-top: $spacer / 2;
  }

  &__Form {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-end;
    width: 100%;
  }

  &__Button {
    width: 100%;
  }

  &--introduction,
  &--verify-email {
    padding-top: 5 * $spacer;

    .CloudAuthentication__Brand {
      transform: scale(1.2);
    }
  }
}
